API Documentation
NodeManager.h
1 // NodeManager.h
3 //
5 
6 namespace nkGraphics
7 {
17  class NodeManager final : public nkCommon::SingletonClass<NodeManager>
18  {
19  public :
20 
30  Node* create () ;
44  Node* get (const nkMemory::StringView& name) const ;
53  Node* getByIndex (unsigned int index) const ;
60  void rename (const nkMemory::StringView& currentName, const nkMemory::StringView& newName) ;
66  void erase (const nkMemory::StringView& name) ;
67  } ;
68 }
nkGraphics::NodeManager::rename
void rename(const nkMemory::StringView &currentName, const nkMemory::StringView &newName)
nkGraphics::NodeManager::createOrRetrieve
Node * createOrRetrieve(const nkMemory::StringView &name)
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics::NodeManager::create
Node * create()
nkGraphics::NodeManager
Manages the nodes available in the component.
Definition: NodeManager.h:18
nkGraphics::NodeManager::get
Node * get(const nkMemory::StringView &name) const
nkGraphics::Node
Represents a node in a scene graph.
Definition: Node.h:14
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::NodeManager::erase
void erase(const nkMemory::StringView &name)
nkGraphics::NodeManager::getByIndex
Node * getByIndex(unsigned int index) const